#ifndef SHEETWIDGETPG2_H
#define SHEETWIDGETPG2_H

#include "interfaces.h"

namespace Ui {
    class SheetWidgetPg2;
}

class QVariantTableModel;

class SheetWidgetPg2 : public WidgetWithGdrData
{
    Q_OBJECT

public:
    explicit SheetWidgetPg2(QObject* chModel = 0, QWidget *parent = 0);
    ~SheetWidgetPg2();

    void setGdrData(QVariantMap*);
    QObject* chModel();
    void refreshFromData(QObject*);
    virtual void updateData(QObject*);

private slots:
    void appendClue();
    void appendContact();
    void appendWeapon();

    void appendClue(QString desc, QString loc, QString leadsto);
    void appendContact(QString name, QString loc, QString notes);

    /*
    weapons->setHeaderData(0, Qt::Horizontal, tr("Description"));
    weapons->setHeaderData(1, Qt::Horizontal, tr("Damage"));
    weapons->setHeaderData(2, Qt::Horizontal, tr("Point Black"));
    weapons->setHeaderData(3, Qt::Horizontal, tr("Close"));
    weapons->setHeaderData(4, Qt::Horizontal, tr("Near"));
    weapons->setHeaderData(5, Qt::Horizontal, tr("Long"));
    weapons->setHeaderData(6, Qt::Horizontal, tr("Notes"));

*/
    void appendWeapon(QString desc, QString dmg, QString ptblack, QString close, QString near, QString lng, QString notes);

private:
    Ui::SheetWidgetPg2 *ui;

    QVariantTableModel *clues, *contacts, *weapons;
    QVariantMap* gdrData;
    QObject* ch;
};

#endif // SHEETWIDGETPG2_H
